package com.ruoyi.erp.mapper;

import com.ruoyi.erp.domain.XzgOrder;
import com.ruoyi.erp.domain.vo.XzgOrderVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface XzgOrderMapper {
    int deleteByPrimaryKey(Long orderId);

    int insert(XzgOrder record);

    int insertSelective(XzgOrder record);

    XzgOrder selectByPrimaryKey(Long orderId);

    int updateByPrimaryKeySelective(XzgOrder record);

    int updateByPrimaryKey(XzgOrder record);

    List<XzgOrderVo> selectOrderList(XzgOrderVo order);

    Integer selectSameCode(@Param("orderId") Integer orderId, @Param("orderCode") String orderCode);

    int logicDeleteOrderById(@Param("orderIds") Long[] orderIds, @Param("username") String username);

    int selectByCustomerIds(Long[] customerIds);

    List<XzgOrder> selectByIds(Long[] orderIds);

    XzgOrder selectByOrderCode(String orderCode);
}